package com.gonsin.ta.example.nodes.nodeComponents;

import com.gonsin.ta.example.nodes.nodeMethods.NodeDemoService;
import com.gonsin.ta.logic.annotations.NodeComponent;
import com.gonsin.ta.logic.components.SwitchNode;
import com.gonsin.ta.logic.parse.condition.context.ChainContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
@NodeComponent(nodeId = "判断审核结果")
public class CheckAuditResult implements SwitchNode {

    /// 支持注入
    @Autowired
    private NodeDemoService logicService;

    @Override
    public String processSwitch(ChainContext context) {
        return "true";
    }
}
